﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Bamuca.Master" AutoEventWireup="true"
    CodeBehind="CadastrarEscolas.aspx.cs" Inherits="Bamuca.Views.CadastrarEscolas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="titulo" style="margin-top: 1px; line-height: 22px; padding: 2px;">
        <center>
            <h2 style="font-family: Calibri;">
                Lista de Grupos</h2>
            <hr style="height: -12px" />
        </center>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <center>
                <div class="conteudo" style="width: 700px">
                    <div id="gridEscolas" style="float: left;">
                        <asp:GridView ID="grvEscolas" runat="server" AutoGenerateColumns="False" PageSize="12"
                            OnPageIndexChanging="grvEscolas_PageIndexChanging" OnSelectedIndexChanged="grvEscolas_SelectedIndexChanged"
                            AllowPaging="True" Width="450px">
                            <AlternatingRowStyle BackColor="#99CCFF" />
                            <Columns>
                                <asp:BoundField DataField="IdEscola" HeaderText="Id" ItemStyle-CssClass="colunaID"
                                    HeaderStyle-CssClass="colunaID" Visible="False">
                                    <HeaderStyle CssClass="colunaID" />
                                    <ItemStyle CssClass="colunaID" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Nome" HeaderText="Nome da Escola" ItemStyle-CssClass="nomeEscola"
                                    HeaderStyle-CssClass="nomeEscola">
                                    <HeaderStyle CssClass="nomeEscola" />
                                    <ItemStyle CssClass="nomeEscola" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Status" HeaderText="Status" ItemStyle-CssClass="status"
                                    HeaderStyle-CssClass="status">
                                    <HeaderStyle CssClass="status" />
                                    <ItemStyle CssClass="status" />
                                </asp:BoundField>
                                <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/btn_editarmini.png"
                                    SelectText="Editar informações desta escola" ShowSelectButton="True" ItemStyle-CssClass="colunaEdicao"
                                    HeaderStyle-CssClass="colunaEdicao">
                                    <HeaderStyle CssClass="colunaEdicao" />
                                    <ItemStyle CssClass="colunaEdicao" />
                                </asp:CommandField>
                            </Columns>
                            <HeaderStyle BackColor="#6699FF" />
                            <PagerStyle BackColor="#CCCCFF" HorizontalAlign="Left" />
                            <RowStyle HorizontalAlign="Left" />
                        </asp:GridView>
                    </div>
                    <div id="filtro" style="margin-left: 40px; padding: 3px; border: 1px solid #CCC;
                        float: left;">
                        <p align="left">
                            Pesquisar<br />
                            <br />
                            <strong>Nome:</strong><br />
                            <asp:TextBox ID="tbFiltroNome" runat="server" Width="160px"></asp:TextBox>
                            <br />
                            <br />
                            <table align="left">
                                <tr>
                                    <td>
                                        <strong>Status:</strong>
                                    </td>
                                    <td>
                                        <strong>Ordenar Por:</strong>
                                    </td>
                                    <tr>
                                        <td>
                                            <asp:RadioButtonList ID="rbListStatus" runat="server">
                                            <asp:ListItem Selected="True" Value="2">Todos</asp:ListItem>
                                            <asp:ListItem Value="1">Ativos</asp:ListItem>
                                            <asp:ListItem Value="0">Inativos</asp:ListItem>
                                        </asp:RadioButtonList>
                                        </td>
                                        <td>
                                            <asp:RadioButtonList ID="rbListOrdenar" runat="server">
                                                <asp:ListItem Selected="True" Value="1">Nome</asp:ListItem>
                                                <asp:ListItem Value="2">Status</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btFiltrar" runat="server" OnClick="btFiltrar_Click" 
                                            Text="Filtrar" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnNew" runat="server" PostBackUrl="~/Views/EditarGrupos.aspx" 
                                            Text="Novo" />
                                    </td>
                                </tr>
                            </table>
                        </p>                       
                    </div>
                </div>
            </center>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
